#ifndef __IPADDRESSPORT_H__
#define __IPADDRESSPORT_H__
#include<string>
class IpAddressPort{
private:
   std::string ip_;
   unsigned short port_;// 在TCP结构图中，端口为16位
public:
  IpAddressPort(std::string,unsigned short);
  std::string ToString()const;
  void SetIpAddress(std::string );
  std::string GetIpAddress()const;
 
  void SetPort(unsigned short);
  unsigned short GetPort()const;


};
#endif